package org.example.com.Controller;

import jakarta.annotation.Resource;
import org.example.com.service.CategoryService;
import org.example.com.util.JsonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/category")
public class CategoryController {
    @Resource
    private CategoryService categoryService;
    @GetMapping
    public JsonResult find(){
        return categoryService.find();
    }
}
